import React, {Component} from 'react'
import {Col, Row, Table} from 'antd'
import '../../static/scss/common/tableComponent.scss'

class TableComponent extends Component {
    render() {
        const {columns, dataSource, tableAttributes} = this.props;
        return (
            <>
                <Row className="common_table_module animateFadeInUp">
                    <Col span={24}>
                        <Table className="custom_table_style" dataSource={dataSource} pagination={false} columns={columns} {...tableAttributes}/>
                    </Col>
                </Row>
            </>
        )
    }
}

export default TableComponent;